package com.car.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

public class Role {

    //角色ID
    private Integer role_id;

    //   角色名称
    private String role_name;

    //  角色权限字符串
    private String role_key;

    //     显示顺序
    private Integer role_sort;

    //     数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
    private String data_scope;

    //     角色状态（0正常 1停用）
    private String status;

    //     删除标志（0代表存在 2代表删除）
    private String del_flag;

    //    创建者
    private String create_by;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp create_time;

    //更新者
    private String update_by;

    //    更新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp update_time;
    //备注
    private String remark;

    public Role() {
    }

    public Role(Integer role_id, String role_name, String role_key, Integer role_sort, String data_scope, String status, String del_flag, String create_by, Timestamp create_time, String update_by, Timestamp update_time, String remark) {
        this.role_id = role_id;
        this.role_name = role_name;
        this.role_key = role_key;
        this.role_sort = role_sort;
        this.data_scope = data_scope;
        this.status = status;
        this.del_flag = del_flag;
        this.create_by = create_by;
        this.create_time = create_time;
        this.update_by = update_by;
        this.update_time = update_time;
        this.remark = remark;
    }

    /**
     * 获取
     * @return role_id
     */
    public Integer getRole_id() {
        return role_id;
    }

    /**
     * 设置
     * @param role_id
     */
    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    /**
     * 获取
     * @return role_name
     */
    public String getRole_name() {
        return role_name;
    }

    /**
     * 设置
     * @param role_name
     */
    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    /**
     * 获取
     * @return role_key
     */
    public String getRole_key() {
        return role_key;
    }

    /**
     * 设置
     * @param role_key
     */
    public void setRole_key(String role_key) {
        this.role_key = role_key;
    }

    /**
     * 获取
     * @return role_sort
     */
    public Integer getRole_sort() {
        return role_sort;
    }

    /**
     * 设置
     * @param role_sort
     */
    public void setRole_sort(Integer role_sort) {
        this.role_sort = role_sort;
    }

    /**
     * 获取
     * @return data_scope
     */
    public String getData_scope() {
        return data_scope;
    }

    /**
     * 设置
     * @param data_scope
     */
    public void setData_scope(String data_scope) {
        this.data_scope = data_scope;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return del_flag
     */
    public String getDel_flag() {
        return del_flag;
    }

    /**
     * 设置
     * @param del_flag
     */
    public void setDel_flag(String del_flag) {
        this.del_flag = del_flag;
    }

    /**
     * 获取
     * @return create_by
     */
    public String getCreate_by() {
        return create_by;
    }

    /**
     * 设置
     * @param create_by
     */
    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }

    /**
     * 获取
     * @return create_time
     */
    public Timestamp getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return update_by
     */
    public String getUpdate_by() {
        return update_by;
    }

    /**
     * 设置
     * @param update_by
     */
    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }

    /**
     * 获取
     * @return update_time
     */
    public Timestamp getUpdate_time() {
        return update_time;
    }

    /**
     * 设置
     * @param update_time
     */
    public void setUpdate_time(Timestamp update_time) {
        this.update_time = update_time;
    }

    /**
     * 获取
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return "Role{role_id = " + role_id + ", role_name = " + role_name + ", role_key = " + role_key + ", role_sort = " + role_sort + ", data_scope = " + data_scope + ", status = " + status + ", del_flag = " + del_flag + ", create_by = " + create_by + ", create_time = " + create_time + ", update_by = " + update_by + ", update_time = " + update_time + ", remark = " + remark + "}";
    }
}
